home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cix.compulink.co.uk!usenet
- From: henri@cix.compulink.co.uk ("Henry Andrew")
- Subject: Re: _chdir() question
- Message-ID: <DKvy5A.K7q@cix.compulink.co.uk>
- Organization: Compulink Information eXchange
- References: <4b84in$35u@newsbf02.news.aol.com>
- Date: Mon, 8 Jan 1996 23:19:58 GMT
- X-News-Software: Ameol32
-
- >I'm writing a console utility that I want to exit to a different
- >directory than the utility is launched from. Using _chdir() changes >the
- >default directory within the utility but exits to the original
- >directory.
- >Does anyone know how to do this.
-
- 'Fraid you can't do it in Unix (ASAIK). You would need to change the
- parent processes UArea and that is not allowed. (BTW before you ask, 'cd'
- is a cheat; it is done by the shell process itself).
-
- Yours &c. Henry
-